<?php /* Smarty version 2.6.26, created on 2014-02-07 08:05:46
         compiled from files.tpl.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'files.tpl.php', 41, false),array('modifier', 'urldecode', 'files.tpl.php', 46, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<div class="titleFull">

	<div class="wrapper">

		<h1 style="line-height: 100px; margin: 0px;">My Files</h1>

	</div>

</div>


<div class="titleBlueBar"></div>




<div class="content2">

	<div class="wrapper">

		<div class="h30"></div>

		<div class="boxLeft2">





			 <form action="files.php" method="post" id="form1" >

			  <table cellspacing="0" cellpadding="0" class="table">
			  <tr>
				  <th>Filename</th><th style="width:100px">Size</th><th style="width:50px">Clicks</th><th style="width:50px">Leads</th><th style="text-align:right;  padding-right:0; width:150px"><input style="margin-top:2px;" type="checkbox" id="checkAll" onclick="CheckAll('form1')" />&nbsp;</th>
			  </tr>
			  <?php if ($this->_tpl_vars['files'] != ""): ?>
			  <?php $_from = $this->_tpl_vars['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['file']):
?>
				  
			     <tr style="background: <?php echo smarty_function_cycle(array('name' => 'rows','values' => '#ffffff, #f0f0f0'), $this);?>
; height:25px; font-size: 14px;" onmouseover="mouseOver(this, '#fafbfc')" onmouseout="mouseOut(this, '<?php echo smarty_function_cycle(array('name' => 'hovers','values' => '#ffffff,#fafbfc'), $this);?>
')"><!--<td><?php echo $this->_tpl_vars['file']['id']; ?>
</td>-->
				 
				 <td onmouseover="swap('entry<?php echo $this->_tpl_vars['file']['id']; ?>
', 'showInput')" onmouseout="swap('entry<?php echo $this->_tpl_vars['file']['id']; ?>
', 'hide')" width="260"  >
				 <div id="entry<?php echo $this->_tpl_vars['file']['id']; ?>
" style="display:block; width:100%"><?php echo $this->_tpl_vars['file']['filename']; ?>
</div>
				    <div id="inputdiventry<?php echo $this->_tpl_vars['file']['id']; ?>
" style="display: none;">
					<img src="templates/images/copy.png" style="margin-top:3px;" alt="Copy Link" />&nbsp;&nbsp;<input id="inputbox<?php echo $this->_tpl_vars['file']['id']; ?>
" onclick="selectText(this, 'entry<?php echo $this->_tpl_vars['file']['id']; ?>
');" type="text" class="copyInput"  readonly="readonly" value="<?php echo urldecode($this->_tpl_vars['SITE_URL']); ?>
file/<?php echo $this->_tpl_vars['file']['fcode']; ?>
" style="width:210px;"/></div>
				 </div>
				 </td>
				 
				 <td><?php echo $this->_tpl_vars['file']['filesize']; ?>
</td>
				 
				 <td><?php echo $this->_tpl_vars['file']['hits']; ?>
</td>
				 
				 <td><?php echo $this->_tpl_vars['file']['downloads']; ?>
</td>
				 
				 <td style="text-align:right; padding-right:0px;"><a style="font-size: 14px;" href="files.php?file=<?php echo $this->_tpl_vars['file']['id']; ?>
">Details</a> | <a style="font-size: 14px;" href="files.php?file=<?php echo $this->_tpl_vars['file']['id']; ?>
&section=comment" class="file_d">Testimonials</a> <input type="checkbox" name="ids[]" value="<?php echo $this->_tpl_vars['file']['id']; ?>
" style="vertical-align:middle" onclick="uncheckCheckAllbox(this)" />&nbsp;</td></tr>
				  
			  <?php endforeach; endif; unset($_from); ?>
			  <?php endif; ?>

			</table>

			<div class="h20"></div>

			<div class="boxLeft2Left"><div><?php if ($this->_tpl_vars['records'] != ""): ?>&nbsp;<b><?php echo $this->_tpl_vars['records']; ?>
</b> File(s), page <b><?php echo $this->_tpl_vars['page']; ?>
</b> of <b><?php echo $this->_tpl_vars['pages']; ?>
</b> <?php else: ?> No file uploaded. <?php endif; ?><?php echo $this->_tpl_vars['firstpage']; ?>
 <?php echo $this->_tpl_vars['previouspage']; ?>
 <?php echo $this->_tpl_vars['nextpage']; ?>
 <?php echo $this->_tpl_vars['lastpage']; ?>
&nbsp;</div></div>

			<div class="boxLeft2Right"><input type="submit" class="buttonsmall" value="Delete" name="delete" onclick="if(!confirm('Are you sure you want to delete selected files?')) return false;" /></div>
			</div>
			</form>


			 <?php if ($this->_tpl_vars['pages'] > 1): ?>

			<div class="h10"></div>

			<div style="float:left">Page <?php echo $this->_tpl_vars['page']; ?>
 of <?php echo $this->_tpl_vars['pages']; ?>
</div> <div style="float:right"> <?php echo $this->_tpl_vars['previous']; ?>
 <?php echo $this->_tpl_vars['next']; ?>
</div>

			<?php endif; ?>
			  


			<?php echo '
			<script type="text/javascript">
			$(document).ready(function(){

			$(\'.listing_row\').hover(function(){ $(this).css(\'background-color\', \'#f6f6f6\'); }, function(){ $(this).css(\'background-color\', \'#ffffff\'); });

			  $(\'#cboxClose\').remove();
				 
			   $(\'.file_d\').colorbox({iframe:true, innerWidth:600, innerHeight:550, scrolling: false});	 



			});
			</script>


			'; ?>







		</div>




<!--Right Panel-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "sidebar.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--End Right Panel-->


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>